package com.dragee.modules.work.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.dragee.modules.work.po.UserCollegePo;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 商学院成员
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-03-31 16:41:10
 */
@Data
@TableName("t_user_college")
@NoArgsConstructor
public class UserCollegeEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public UserCollegeEntity (UserCollegePo po) {
        this.userId = po.getUserId();
        this.address = po.getAddress();
    }
    /**
     * userId
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long userId;

    /**
     * 地址
     */
    private String address;



    }